package com.edu.chat.web.covert;

import com.edu.chat.facade.model.dto.SceneInfoDTO;
import com.edu.chat.facade.model.dto.SessionInfoDetailDTO;
import com.edu.chat.web.model.CsScene;
import com.edu.chat.web.model.CsSession;

/**
 * @program: KQAIA
 * @description:
 * @author: 无恙
 * @create: 2025-03-30 18:22
 **/


public class SessionCovert {

	public static SessionInfoDetailDTO convert(CsSession csSession, SceneInfoDTO sceneInfoDTO){
		SessionInfoDetailDTO sessionInfoDetailDTO = new SessionInfoDetailDTO();
		sessionInfoDetailDTO.setSessionId(String.valueOf(csSession.getId()));
		sessionInfoDetailDTO.setTitle(csSession.getName());
		sessionInfoDetailDTO.setUserId(String.valueOf(csSession.getUserId()));
		sessionInfoDetailDTO.setStatus(csSession.getStatus());
		sessionInfoDetailDTO.setSceneInfo(sceneInfoDTO);
		sessionInfoDetailDTO.setTenantId(csSession.getTenantId());
		return sessionInfoDetailDTO;
	}
}
